package com.maxmlr.music.common.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName PageParam
 * @Description TODO
 * @Author maxiao
 * @Date 2020/6/5 上午9:55
 * @Version V1.0
 */
@Data
@ApiModel("分页参数")
public class PageParam implements Serializable {

    @ApiModelProperty(value = "当前页", name = "pageNum", example = "1", position = 1)
    private Integer pageNum;

    @ApiModelProperty(value = "每页条数", name = "pageSize", example = "10", position = 2)
    private Integer pageSize;

    @ApiModelProperty(value = "排序字段" , name = "sort" , example = "" , position = 3)
    private String sort;

    @ApiModelProperty(value = "是否正序", name = "asc", example = "true", position = 4)
    private boolean asc = true;

    @ApiModelProperty(value = "是否分页", name = "pageFlag", example = "true", position = 5)
    private boolean pageFlag = true;

}
